package study.saas.order.service;

import study.saas.common.viewmodel.ApiResultV2;
import study.saas.common.viewmodel.PageModel;
import study.saas.order.entity.Purchase;
import study.saas.order.service.model.PurchaseConditionDTO;
import study.saas.order.service.model.PurchaseCreateDTO;
import study.saas.order.service.model.PurchaseFilterDTO;

import java.util.List;

public interface PurchaseFacade {
    ApiResultV2<List<Purchase>> selectAll();
    ApiResultV2<Purchase> get(Integer purchaseId);

    ApiResultV2<PageModel<Purchase>> list(PurchaseFilterDTO filter);

    ApiResultV2 purchaseCreate(PurchaseCreateDTO purchaseCreate) ;

    ApiResultV2<Purchase> deletePurchase(Integer purchaseId);

    ApiResultV2<PageModel<Purchase>> conditionList(PurchaseConditionDTO filter);

}
